﻿using System;
using Gizmox.WebGUI.Forms;

namespace CoCoon.Forms.Ribbon
{
    [Serializable]
    public class RibbonBarNumericUpDownItem : RibbonBarTextBoxItem
    {

        protected override Control CreateControl()
        {
            NumericUpDown = new NumericUpDown();
            return (Control) NumericUpDown;
        }

        public NumericUpDown NumericUpDown { get; set; }


        public event EventHandler TextChanged
        {
            add { NumericUpDown.TextChanged += value; }
            remove { NumericUpDown.TextChanged -= value; }
        }
    }
}


